<TestCase testName="Test_02_Orchestration2">

	<TestSetup>
		<TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.FileDeleteMultipleStep">
			<Directory>.\..\..\TestData\Rec_03\</Directory>
			<SearchPattern>*.xml</SearchPattern>
		</TestStep>

		<TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.FileDeleteMultipleStep">
			<Directory>.\..\..\TestData\Send_02\</Directory>
			<SearchPattern>*.xml</SearchPattern>
		</TestStep>
	</TestSetup>

	<TestExecution>

		<!-- N O T E : runConcurrently="true" is specified so that this step runs concurrently, therefore allowing the 
					   interleaved send and recieves to take place before the step finishes -->
		<TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.HttpRequestResponseStep" runConcurrently="true">
			<SourcePath>.\..\..\TestData\InDoc1.xml</SourcePath>
			<DestinationUrl>http://localhost/BizUnitSDK/BTSHTTPReceive.dll?ReqResp</DestinationUrl>
			<RequestTimeout>20000</RequestTimeout>

			<ValidationStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.XmlValidationStep">
				<XmlSchemaPath>.\..\..\TestData\PurchaseOrder.xsd</XmlSchemaPath>
				<XmlSchemaNameSpace>http://SendMail.PurchaseOrder</XmlSchemaNameSpace>
				<XPathList>
					<XPathValidation query="/*[local-name()='PurchaseOrder' and namespace-uri()='http://SendMail.PurchaseOrder']/*[local-name()='PONumber' and namespace-uri()='']">1234</XPathValidation>
				</XPathList>
			</ValidationStep>

		</TestStep>

		<TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.FileValidateStep">
			<Timeout>10000</Timeout>
			<Directory>.\..\..\TestData\Send_02\</Directory>
			<SearchPattern>*.xml</SearchPattern>
			<DeleteFile>true</DeleteFile>

			<ValidationStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.XmlValidationStep">
				<XmlSchemaPath>.\..\..\TestData\TestData\PurchaseOrder.xsd</XmlSchemaPath>
				<XmlSchemaNameSpace>http://SendMail.PurchaseOrder</XmlSchemaNameSpace>
				<XPathList>
					<XPathValidation query="/*[local-name()='PurchaseOrder' and namespace-uri()='http://SendMail.PurchaseOrder']/*[local-name()='PONumber' and namespace-uri()='']">1234</XPathValidation>
				</XPathList>
			</ValidationStep>
		</TestStep>

		<TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.FileCreateStep">
			<SourcePath>.\..\..\TestData\InDoc1.xml</SourcePath>
			<CreationPath>.\..\..\TestData\Rec_03\InDoc1.xml</CreationPath>
		</TestStep>

	</TestExecution>

	<!-- Test cleanup: test cases should always leave the system in the state they found it -->
	<TestCleanup>
		<TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.FileDeleteMultipleStep">
			<Directory>.\..\..\TestData\Rec_03\</Directory>
			<SearchPattern>*.xml</SearchPattern>
		</TestStep>

		<TestStep assemblyPath="" typeName="Microsoft.Services.BizTalkApplicationFramework.BizUnit.FileDeleteMultipleStep">
			<Directory>.\..\..\TestData\Send_02\</Directory>
			<SearchPattern>*.xml</SearchPattern>
		</TestStep>
	</TestCleanup>

</TestCase>


